package com.wsjc.app.push.controller;

import javax.servlet.http.HttpSession;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.wsjc.common.core.constants.CommonConst;
import com.wsjc.manager.service.rpc.data.WjCollectionDataService;

@Controller
@RequestMapping(value = "/app/push/")
public class WjAuthController {

	@Autowired
	private WjCollectionDataService wjCollectionDataService ;
		
	private Logger logger = LoggerFactory.getLogger(WjAuthController.class);
	
	
	/**
	 * 对连接进行授权，token 效验
	 * @author 93733
	 */
	@RequestMapping(value = "authToken", method = RequestMethod.GET)
	public String authToken(String token, Model model, HttpSession session) {
		
		try {
			
			session.setAttribute(CommonConst.CURRENT_USER, "15998133877");
			
			return "socketDemo" ;
		} catch (Exception e) {
			e.printStackTrace();
			return "" ;
		}
		
	}

							 
	

	
	
	
	
	
	
	
	

}
